<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link rel="stylesheet" type="text/css" href="/assets/auth/css/normailze.css" />
    <link rel="stylesheet" type="text/css" href="/assets/auth/css/base.css" />
    <link rel="stylesheet" type="text/css" href="/assets/auth/css/authentication.css" />
</head>
<body>
<div class="authentication">
    <img src="/assets/auth/img/logo@2x.png" alt="" class="authentication_logo">
    <main>
        <div class="authentication_cont block">
            <div class="authentication_step">
                <div class="authentication_step_box {eq name='$teacherInfo.auth_status' value='0'}add_step{else/}add_end_step{/eq}  ">
                    <div class="bgd_rus ">
                        <b>1</b>
                        <img src="/assets/auth/img/shalou@2x.png">
                    </div>
                    <p>
                        <span>申请认证</span>
                        <span>完善教师资质信息</span>
                    </p>
                </div>
                <div class="authentication_step_box
                 {eq name='$teacherInfo.auth_status' value='3'}add_step{/eq}
                 {eq name='$teacherInfo.auth_status' value='1'}add_end_step{/eq}
                 {eq name='$teacherInfo.auth_status' value='2'}add_step{/eq}">
                    <div class="bgd_rus ">
                        <b>2</b>
                        <img src="/assets/auth/img/shalou@2x.png">
                    </div>
                    <p>
                        <span>认证审核</span>
                        <span>平台查看并审核教师完
									善的资质信息</span>
                    </p>
                </div>
                <div class="authentication_step_box {if condition="($teacherInfo.auth_status == '1')"}add_step{/if}">
                    <div class="bgd_rus">
                        <b>3</b>
                        <img src="/assets/auth/img/shalou@2x.png">
                    </div>
                    <p>
                        <span>完成</span>
                        <span>申请完成，去使用平台
									服务吧！</span>
                    </p>
                </div>
            </div>
            <div class="authentication_contbox"  >
                <div class="step1_cont" {neq name='$teacherInfo.auth_status' value='0'}style="display:none"{/neq} >
                    <div class="row">
                        <div class="col-xs-12">
                            <form  class="form-horizontal" role="form" data-toggle="validator" method="POST" action="teacher/launch">
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Nick_name')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <input id="c-nick_name1" class="form-control" name="row[nick_name]" type="text" value="{$teacherInfo.nick_name}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Header')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <div class="input-group">
                                            <input id="c-header" class="form-control" size="50" name="row[header]" readonly value="{$teacherInfo.header|htmlentities}" type="text">
                                            <div class="input-group-addon no-border no-padding">
                                                <span><button type="button" id="plupload-header" class="btn btn-danger plupload"  data-input-id="c-header" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-header"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                            </div>
                                            <span class="msg-box n-right" for="c-header"></span>
                                        </div>
                                        <ul class="row list-inline plupload-preview" id="p-header"></ul>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <select  id="c-sex1" class="form-control selectpicker" name="row[sex]">
                                            {foreach name="sexList" item="vo"}
                                            <option value="{$key}" {in name="key" value="$teacherInfo.sex"}selected{/in}>{$vo}</option>
                                            {/foreach}
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <input id="c-age1" class="form-control" name="row[age]"  value="{$teacherInfo.age}"  type="number" value="0">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Grade')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <!--                                    <input id="c-grade" class="form-control" name="row[grade]" type="text">-->
                                        <input id="c-grade" data-rule="required" data-source="grade/selectpage" value="{$teacherInfo.grade}"  data-multiple="false" data-primary-key="grade_name" data-field="grade_name" class="form-control selectpage" name="row[grade]" type="text" value="">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('School')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <input id="c-school1" class="form-control" name="row[school]"  value="{$teacherInfo.school}"  type="text">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('School_age')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <input id="c-school_age1" class="form-control" name="row[school_age]" value="{$teacherInfo.school_age}"  type="number">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Certification')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <div class="input-group">
                                            <input id="c-certification" class="form-control" size="50" readonly name="row[certification]" value="{$teacherInfo.certification|htmlentities}" type="text">
                                            <div class="input-group-addon no-border no-padding">
                                                <span><button type="button" id="plupload-certification" class="btn btn-danger plupload" data-input-id="c-certification" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-certification"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                            </div>
                                            <span class="msg-box n-right" for="c-certification"></span>
                                        </div>
                                        <ul class="row list-inline plupload-preview" id="p-certification"></ul>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Self_know')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-self_know1" class="form-control editor" rows="3" name="row[self_know]" cols="30">
                                   {$teacherInfo.self_know}
                                    </textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Honor_know')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-honor_know1" class="form-control editor" rows="3" name="row[honor_know]" cols="30">
                                     {$teacherInfo.honor_know}
                                    </textarea>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Other_materials')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <div class="input-group">
                                            <input id="c-other_materials" class="form-control" size="50" name="row[other_materials]" value="{$teacherInfo.other_material|htmlentities}" readonly type="text">
                                            <div class="input-group-addon no-border no-padding">
                                                <span><button type="button" id="plupload-other_materials" class="btn btn-danger plupload" data-input-id="c-other_materials" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-other_materials"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                            </div>
                                            <span class="msg-box n-right" for="c-other_materials"></span>
                                        </div>
                                        <ul class="row list-inline plupload-preview" id="p-other_materials"></ul>
                                    </div>
                                </div>
                                <div class="form-group layer-footer">
                                    <label class="control-label col-xs-12 col-sm-2"></label>
                                    <div class="col-xs-12 col-sm-8">
                                        <button type="submit" id="" class="btn btn-success btn-embossed disabled">{:__('发起认证')}</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="step2_cont" {neq name='$teacherInfo.auth_status' value='3'}style="display:none"{/neq}>
                    <div {if condition="$teacherInfo.auth_status == '2'"}style="display:none"{/if}>
                    <div class="step2_contBox" >
                        <img src="/assets/auth/img/shijian.png">
                        <div>
                            <p>审核中......</p>
                            <span>您的资质信息已提交，我们将在1-3个工作日内审批完成
										谢谢您的配合</span>
                        </div>
                    </div>
                    <button class="seeBtn" id="layer_show">查看认证资料</button>
                    </div>

                </div>
                <div class="step3_cont" {if condition="($teacherInfo.auth_status == '0') OR ($teacherInfo.auth_status == '3') "}style="display:none"{/if}>
                    <div class="success {neq name='$teacherInfo.auth_status' value='2'}block{/neq}" >
                        <img src="/assets/auth/img/success.png">
                        <P>审核成功<br>请开始您的教育之旅</P>
                        <button class="start">开始教学</button>
                    </div>
                <div class="error {eq name='$teacherInfo.auth_status' value='2'}block{/eq}" >
                        <img src="/assets/auth/img/error.png">
                        <P>审核失败<br>请重新填写您的认证资料进行审核<br><span class="pspan">{$teacherInfo.auth_reason}</span></P>
                        <button class="restform">重新填写</button>
                </div>
                </div>
            </div>
        </div>

    </main>
    <div class="layer">
        <div class="layer_cont">
            <img class="layer_close" style="z-index: 999 !important;cursor: pointer" src="/assets/auth/img/close.png">
            <div class="row" style="width: 725px;height: 580px;margin: 0 auto;overflow: auto">
                <div class="col-xs-12">
                    <form  class="form-horizontal" role="form1" data-toggle="validator" method="POST" action="teacher/launch">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Nick_name')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-nick_name" class="form-control" name="row[nick_name]" type="text" disabled value="{$teacherInfo.nick_name}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Header')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <ul class="row list-inline plupload-preview" id="p-images">
                                    <li class="col-xs-3"><a href="{$teacherInfo.header}"
                                                            data-url="{$teacherInfo.header}"
                                                            target="_blank" class="thumbnail"><img
                                            src="{$teacherInfo.header}"
                                            onerror="this.src='https://tool.fastadmin.net/icon/'+'{$teacherInfo.header}'.split('.').pop()+'.png';this.onerror=null;"
                                            class="img-responsive"></a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input class="form-control"  type="text" disabled value="{$teacherInfo.sex == 'man'? '男' : '女'}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Age')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-age" class="form-control" name="row[age]"  value="{$teacherInfo.age}" disabled  type="number" value="0">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Grade')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-grade" data-rule="required" data-source="grade/selectpage" disabled value="{$teacherInfo.grade}"  data-multiple="false" data-primary-key="grade_name" data-field="grade_name" class="form-control selectpage" name="row[grade]" type="text" value="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('School')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-school" class="form-control" name="row[school]" disabled  value="{$teacherInfo.school}"  type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('School_age')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <input id="c-school_age" class="form-control" name="row[school_age]" disabled value="{$teacherInfo.school_age}"  type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Certification')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <ul class="row list-inline plupload-preview" id="p-images1">
                                    <li class="col-xs-3"><a href="{$teacherInfo.certification}"
                                                            data-url="{$teacherInfo.certification}"
                                                            target="_blank" class="thumbnail"><img
                                            src="{$teacherInfo.certification}"
                                            onerror="this.src='https://tool.fastadmin.net/icon/'+'{$teacherInfo.certification}'.split('.').pop()+'.png';this.onerror=null;"
                                            class="img-responsive"></a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Self_know')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-self_know" class="form-control editor" disabled rows="3" name="row[self_know]" cols="30">
                                   {$teacherInfo.self_know}
                                    </textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Honor_know')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-honor_know" class="form-control editor" disabled rows="3" name="row[honor_know]" cols="30">
                                     {$teacherInfo.honor_know}
                                    </textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('Other_materials')}:</label>
                            <div class="col-xs-12 col-sm-8">
                                <ul class="row list-inline plupload-preview" id="p-images2">
                                    {foreach $teacherInfo['other_materials'] as $v}
                                    <li class="col-xs-3"><a href="{$v}"
                                                            data-url="{$v}"
                                                            target="_blank" class="thumbnail"><img
                                            src="{$v}"
                                            onerror="this.src='https://tool.fastadmin.net/icon/'+'{$v}'.split('.').pop()+'.png';this.onerror=null;"
                                            class="img-responsive"></a></li>
                                    {/foreach}
                                </ul>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>
        <div class="layer_bgd"></div>
    </div>
</div>
</body>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<script src="/assets/auth/js/authentication.js" type="text/javascript" charset="utf-8"></script>
</html>
